//package com.example.testdemo.config;
//
//
//
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.validation.annotation.Validated;
//
//
//import java.util.List;
//
//@ConfigurationProperties("spring.data.mongodb.custom")
//@Validated
//
//public class MongoSettingsProperties {
//    private String database;
//
//    private List<String> address;
//
//    private String replicaSet;
//    private String username;
//    private Boolean encryption = false;
//    private String publicKey;
//    private String password;
//    private Integer minConnectionsPerHost = 0;
//    private Integer connectionsPerHost = 100;
//    private String authenticationDatabase;
//
//    public MongoSettingsProperties(String database, List<String> address, String replicaSet, String username, Boolean encryption, String publicKey, String password, Integer minConnectionsPerHost, Integer connectionsPerHost, String authenticationDatabase) {
//        this.database = database;
//        this.address = address;
//        this.replicaSet = replicaSet;
//        this.username = username;
//        this.encryption = encryption;
//        this.publicKey = publicKey;
//        this.password = password;
//        this.minConnectionsPerHost = minConnectionsPerHost;
//        this.connectionsPerHost = connectionsPerHost;
//        this.authenticationDatabase = authenticationDatabase;
//    }
//
//    public String getDatabase() {
//        return database;
//    }
//
//    public void setDatabase(String database) {
//        this.database = database;
//    }
//
//    public List<String> getAddress() {
//        return address;
//    }
//
//    public void setAddress(List<String> address) {
//        this.address = address;
//    }
//
//    public String getReplicaSet() {
//        return replicaSet;
//    }
//
//    public void setReplicaSet(String replicaSet) {
//        this.replicaSet = replicaSet;
//    }
//
//    public String getUsername() {
//        return username;
//    }
//
//    public void setUsername(String username) {
//        this.username = username;
//    }
//
//    public Boolean getEncryption() {
//        return encryption;
//    }
//
//    public void setEncryption(Boolean encryption) {
//        this.encryption = encryption;
//    }
//
//    public String getPublicKey() {
//        return publicKey;
//    }
//
//    public void setPublicKey(String publicKey) {
//        this.publicKey = publicKey;
//    }
//
//    public String getPassword() {
//        return password;
//    }
//
//    public void setPassword(String password) {
//        this.password = password;
//    }
//
//    public Integer getMinConnectionsPerHost() {
//        return minConnectionsPerHost;
//    }
//
//    public void setMinConnectionsPerHost(Integer minConnectionsPerHost) {
//        this.minConnectionsPerHost = minConnectionsPerHost;
//    }
//
//    public Integer getConnectionsPerHost() {
//        return connectionsPerHost;
//    }
//
//    public void setConnectionsPerHost(Integer connectionsPerHost) {
//        this.connectionsPerHost = connectionsPerHost;
//    }
//
//    public String getAuthenticationDatabase() {
//        return authenticationDatabase;
//    }
//
//    public void setAuthenticationDatabase(String authenticationDatabase) {
//        this.authenticationDatabase = authenticationDatabase;
//    }
//}